﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AppManagement.Reports
{
    public partial class FrmInBangDiemTongHopSV : Form
    {
        public string Khoa { get; set; }
        public string ChuyenNganh { get; set; }
        public string MSSV { get; set; }
        public string HoTen { get; set; }
        public DataTable DataSource { get; set; }

        public FrmInBangDiemTongHopSV()
        {
            InitializeComponent();
        }

        private void FrmInBangDiemTongHopSV_Load(object sender, EventArgs e)
        {
            rptBangDiemTongHopSV rpt = new rptBangDiemTongHopSV();
            rpt.DataDefinition.FormulaFields["Khoa"].Text = "'" + Khoa + "'";
            rpt.DataDefinition.FormulaFields["ChuyenNganh"].Text = "'" + ChuyenNganh + "'";
            rpt.DataDefinition.FormulaFields["MSSV"].Text = "'" + MSSV + "'";
            rpt.DataDefinition.FormulaFields["HoTen"].Text = "'" + HoTen + "'";

            rpt.SetDataSource(DataSource);
            crystalReportViewer1.ReportSource = rpt;
        }
    }
}
